﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shrh.Master" AutoEventWireup="true"
    CodeBehind="ProductCategory.aspx.cs" Inherits="WebApp.Product.ProductCategory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="weizhi">
        <asp:HyperLink ID="HLHome" NavigateUrl="~/Home.aspx" runat="server">首页</asp:HyperLink>>
        <asp:HyperLink ID="HLSupCategory" runat="server"></asp:HyperLink>><asp:Literal ID="LtlCategory"
            runat="server"></asp:Literal>
    </div>
    <div class="pr2fenlei">
        <div class="pr2_fe1">
            <div class="pf1">
                <asp:Literal ID="ltlSupCategory" runat="server"></asp:Literal></div>
            <div class="pf2">
                <div class="pf2_1">
                    <ul>
                        <asp:Repeater ID="rptCategory" runat="server" OnItemDataBound="rptCategory_ItemDataBound">
                            <ItemTemplate>
                                <asp:HiddenField ID="HFCategoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                <li>
                                    <asp:HyperLink ID="hlcategory" runat="server" NavigateUrl='<%#Eval("CategoryId","ProductCategory.aspx?CID={0}")%>'
                                        Text='<%#Eval("Name")%>'> </asp:HyperLink>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <div class="pf3">
                <asp:Image ID="Image2" ImageUrl="~/image/fltop3.jpg" runat="server" />
            </div>
            <div class="chanp04">
                <div class="zuijin1">
                    <asp:Image ID="Image3" ImageUrl="~/image/zuijin1.gif" runat="server" />
                </div>
                <div class="zuijin2">
                    <div class="z_bt">
                        <div class="zjt">
                            最近销售</div>
                        <div class="zjm">
                            <%--<a href="">
                                <asp:Image ID="Image1" ImageUrl="~/image/more.gif" runat="server" />
                            </a>--%>
                        </div>
                    </div>
                    <ul>
                        <asp:ListView ID="ListView6" runat="server">
                            <LayoutTemplate>
                                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <div class="zj_img">
                                        <a href="productinfor_rh_<%# Eval("UID")%>.htm">
                                            <asp:Image ID="Image2" runat="server" ImageUrl='<%#Eval("RecommendPicture1")  %>'
                                                Width="84" Height="66" /></a></div>
                                    <div class="zj_name">
                                        <a href="productinfor_rh_<%# Eval("UID")%>.htm">
                                            <%#spliteStr(Eval("Name").ToString())%></a></div>
                                    <div class="zj_time">
                                    </div>
                                </li>
                            </ItemTemplate>
                        </asp:ListView>
                    </ul>
                </div>
                <div class="zuijin3">
                    <asp:Image ID="Image4" ImageUrl="~/image/zuijin3.gif" runat="server" />
                </div>
            </div>
        </div>
        <div class="pr2_fe2">
            <div class="pr3_fenlei">
                <div class="pr3_item">
                    <h2>
                        分类：</h2>
                    <ul>
                        <asp:Repeater ID="rptSubCategory" runat="server" OnItemDataBound="rptSubCategory_ItemDataBound">
                            <ItemTemplate>
                                <li>
                                    <asp:HiddenField ID="hfCagegoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                    <asp:HyperLink ID="HLSubCategoryId" runat="server"><%#Eval("Name")%></asp:HyperLink></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div class="pr3_item">
                    <h2>
                        品牌：</h2>
                    <ul>
                        <li>日花</li>
                    </ul>
                </div>
                <div class="pr3_item">
                    <h2>
                        价格：</h2>
                    <ul>
                        <li>
                            <asp:LinkButton ID="lkBtnPrice1" runat="server" OnClick="lkBtnPrice1_Click">1-99</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton ID="lkBtnPrice2" runat="server" OnClick="lkBtnPrice2_Click">100-500</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton ID="lkBtnPrice3" runat="server" OnClick="lkBtnPrice3_Click">500元以上</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton ID="lkBtnPrice4" runat="server" OnClick="lkBtnPrice4_Click">大型</asp:LinkButton>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="pr3_show">
                <ul>
                    <asp:ListView ID="lvProductByCategory" runat="server" 
                        onitemcommand="lvProductByCategory_ItemCommand" 
                        onitemdatabound="lvProductByCategory_ItemDataBound" 
                        onpagepropertieschanged="lvProductByCategory_PagePropertiesChanged">
                        <LayoutTemplate>
                            <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                        </LayoutTemplate>
                        <ItemTemplate>
                            <li>
                                <div class="pr3_img">
                                   <a title="<%# Eval("Name") %>" id="A1" href="productinfor_rh_<%# Eval("UID")%>.htm" alt="<%# Eval("Name") %>">
                                      <img id="Img1" src='<%# Cosmetic.WebGeneric.SmallImage(Eval("PictureUrl").ToString()) %>'
                                          runat="server" width="181"  height="159" />
                                   </a>
                                </div>
                                <div class="pr3_name">
                                    <a title="<%# Eval("Name") %>" id="A2" href="productinfor_rh_<%# Eval("UID")%>.htm" alt="<%# Eval("Name") %>">
                                        <%# spliteStrs(Eval("Name").ToString())%></a>
                                    <div class="pr3_pingl">
                                        评论：(<%#Eval("Comments.Count")%>)</div>
                                    <div class="pr3_shicj">
                                        市场价格：￥<%#Eval("Price") %></div>
                                    <div class="pr3_rihuajige">
                                        日花价格：￥ 
                                        <asp:Label ID="lbePrice" runat="server" Text='<%#Eval("eprice") %>'></asp:Label>
                                        <asp:HiddenField ID="hfePrice" runat="server" Value='<%#Eval("eprice") %>' />
                                        <asp:ImageButton ID="btnAskPrice" Visible="false" runat="server" ImageUrl="~/image/n_xunjia.gif" CommandName="AddCart" CommandArgument='<%#Eval("ProductId")%>' />
                                    </div>
                                    <div class="pr3_shoping">
                                        <asp:LinkButton ID="lnkBtnAddCart" CommandName="AddCart" CommandArgument='<%#Eval("ProductId")%>'
                                            runat="server">加入我的购物车</asp:LinkButton>
                                    </div>
                                </div>
                            </li>
                        </ItemTemplate>
                    </asp:ListView>
                </ul>
            </div>
            <div class="digg">
                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvProductByCategory" PageSize="12">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="False" ShowNextPageButton="False"
                            ShowPreviousPageButton="True" PreviousPageText="上一页" />
                        <asp:NumericPagerField ButtonType="Link"  />
                        <asp:NextPreviousPagerField ButtonType="Link"  ShowLastPageButton="False" ShowNextPageButton="True"
                            ShowPreviousPageButton="False" NextPageText="下一页" />
                    </Fields>
                </asp:DataPager>
                <%--<span class="disabled">上一页</span><span class="current">1</span> <a href="#?page=2"
                    _fcksavedurl="#?page=2">2</a> <a href="#?page=3" _fcksavedurl="#?page=3">3</a>
                <a href="#?page=2" _fcksavedurl="#?page=2">下一页 </a>--%>
            </div>
        </div>
    </div>
</asp:Content>
